#region

using System.Collections.Generic;
using System.Linq;
using VinhSon.Intranet.Bussiness;

#endregion

namespace VinhSon.Intranet.Repository
{
    public partial class UserRepository
    {
        #region IUserRepository Members

        public bool CheckInsertUser(User user)
        {
            return !DbSet.Any(c => (c.Inactive == false || c.Inactive == null) && c.Username == user.Username);
        }

        public bool CheckUpdateUser(User user)
        {
            return true;
        }

        public bool CheckDeleteUser(List<int> values)
        {
            return true;
        }

        #endregion
    }
}
